package oceanlife.pathfinding;

import java.util.ArrayList;
import java.util.Random;

import oceanlife.RandomGen;

public class Pillar {
	//even though it says radius, the pillars are square!
	public static Double maxPosition = 100.0;
	public static Double maxRadius = 20.0;
	public static Double spacing = 70.0;
	
	private Double position;
	private Double radius;
	
	public Pillar(double position, double radius){
		//position = RandomGen.getRand(0+radius, maxPosition-radius);		
		//radius = RandomGen.getRand(0, maxRadius);
		this.position = position;
		this.radius = radius;
	}
	
	public Pnt[] getPnts(Double X, Double YOffset){
		Pnt[] pntArray = new Pnt[4];
		pntArray[0] = new Pnt(X-radius,YOffset+position-radius);
		pntArray[1] = new Pnt(X-radius,YOffset+position+radius);
		pntArray[2] = new Pnt(X+radius,YOffset+position+radius);
		pntArray[3] = new Pnt(X+radius,YOffset+position-radius);
		return pntArray;
	}
}
